package com.JZ.QM.service;

import com.JZ.QM.common.entity.NewCombinationInfoEntity;
import com.JZ.QM.common.utils.PageUtils;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.ArrayList;
import java.util.Map;

/**
 * 
 *
 * @author lyp
 * @email lyp@gmail.com
 * @date 2020-06-14 11:19:34
 * @version 1.0
 */
public interface NewCombinationInfoService extends IService<NewCombinationInfoEntity> {
    /**
     * 分页查询
     * @param params
     * @return
     * @throws Exception
     */
    PageUtils queryPage(Map<String, Object> params) throws Exception;

    /**
     *根据组合获取用户修改后的组合列表
     * @param comBaseId 组合基本信息id
     * @return
     */
    ArrayList<Long> getNewCombinationListsByCombaseId(Long comBaseId);

    /**
     * 根据用户和组合id
     * @param userId
     * @param comBaseId
     * @return
     */
    Long getNewComId(Long userId, Long comBaseId);
}

